import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// import App from './App';
import * as serviceWorker from './serviceWorker';

import 'antd/dist/antd.css'
import zhCN from 'antd/lib/locale-provider/zh_CN';
import { LocaleProvider } from 'antd'

import { HashRouter as Router } from 'react-router-dom';
import { Provider } from 'react-redux';
import store from './redux';
import RootRouter from './router';

ReactDOM.render(
    <Provider store={store}>
        <LocaleProvider locale={zhCN}>
            <Router>
                <RootRouter />
            </Router>
        </LocaleProvider>
    </Provider>
    , document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
